using System;

namespace PetShop.Web.Entities
{
    [Serializable]
    public class LineItemInfo
    {
        private string _id;
        private int _line;
        private decimal _price;
        private string _productName;
        private int _quantity;

        public LineItemInfo()
        {
        }


        public LineItemInfo(string id, string name, int line, int qty, decimal price)
        {
            _id = id;
            _productName = name;
            _line = line;
            _price = price;
            _quantity = qty;
        }


        public string ItemId
        {
            get { return _id; }
            set { _id = value; }
        }

        public string Name
        {
            get { return _productName; }
            set { _productName = value; }
        }

        public int Line
        {
            get { return _line; }
            set { _line = value; }
        }

        public int Quantity
        {
            get { return _quantity; }
            set { _quantity = value; }
        }

        public decimal Price
        {
            get { return _price; }
            set { _price = value; }
        }

        public decimal SubTotal
        {
            get { return _price*_quantity; }
        }
    }
}